package com.ruoyi.db.domain.system;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【商城用户】对象 pc_message
 * 
 * @author ruoyi
 * @date 2022-07-23
 */
@ApiModel(value = "PcMessage",description = "【商城用户】对象 pc_message")
public class PcMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资讯主键 */
    private Long id;

    /** 标题 */
    @ApiModelProperty(value="标题",name="PcMessage$title")
    @Excel(name = "标题")
    private String title;

    /** 资讯主图 */
    @ApiModelProperty(value="资讯主图",name="PcMessage$masterImg")
    @Excel(name = "资讯主图")
    private String masterImg;

    /** 资讯内容 */
    @ApiModelProperty(value="资讯内容",name="PcMessage$content")
    @Excel(name = "资讯内容")
    private String content;

    /** 排序 */
    @ApiModelProperty(value="排序",name="PcMessage$sort")
    @Excel(name = "排序")
    private Long sort;

    /** 类别;1,系统公告，2新闻，3轮播图 */
    @ApiModelProperty(value="类别;1,系统公告，2新闻，3轮播图",name="PcMessage$type")
    @Excel(name = "类别;1,系统公告，2新闻，3轮播图")
    private Integer type;

    /** 发布状态（0正常 1停用） */
    @ApiModelProperty(value="发布状态",name="PcMessage$status")
    @Excel(name = "发布状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setMasterImg(String masterImg) 
    {
        this.masterImg = masterImg;
    }

    public String getMasterImg() 
    {
        return masterImg;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("masterImg", getMasterImg())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .append("type", getType())
            .toString();
    }
}
